.todoCardWrapper {
    border: 1px solid #ededed;
    background-color: white;
    border-radius: 4px;
    margin-bottom: 16px;
    cursor: pointer;

    &:last-child {
        margin-bottom: 0;
    }
    &:hover {
        box-shadow: 0 2px 5px -3px rgba(0, 0, 0, 0.08), 0 4px 10px 0 rgba(0, 0, 0, 0.04),
            0 6px 16px 6px rgba(0, 0, 0, 0.03);
    }
    .cardWrapper {
        padding: 24px 24px 0;
        display: flex;
        &.overdueCardWrapper {
            position: relative;
            .overdue {
                background: #f55555;
                border-radius: 4px 4px 4px 0;
                position: absolute;
                top: 0;
                right: 0;
                color: white;
                padding: 3px 8px;
                font-size: 12px;
            }
        }
    }

    .left {
        padding-right: 16px;
    }
    .right {
        flex: 1;
        overflow: hidden;
        > p {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 10px;
            > span {
                display: block;
                overflow: hidden;
                text-overflow: ellipsis;
                word-wrap: nowrap;
            }
        }
    }
    .abstract {
        display: flex;
        flex-wrap: wrap;
        li {
            width: 50%;
            display: flex;
            margin-bottom: 5px;

            > span {
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                display: inline-block;
                color: rgba(0, 0, 0, 0.65);
                flex-shrink: 0;
                flex-grow: 0;
                &:first-child {
                    max-width: 120px;
                    text-align: right;
                }
                &:last-child {
                    flex: 1 1 auto;
                    padding-right: 10px;
                    // max-width: 350px;
                }
                > span {
                    display: block;
                    overflow: hidden;
                    width: 100%;
                    text-overflow: ellipsis;
                }
            }
        }
    }
    .footer {
        margin-top: 10px;
        height: 42px;
        background: #fafafa;
        border-radius: 0 0 3px 3px;
        display: flex;
        align-items: center;
        padding: 0 24px;
        color: rgba(0, 0, 0, 0.45);
        .pushInfo {
            flex: 1;
            display: flex;
            i {
                font-size: 16px;
                color: rgba(0, 0, 0, 0.25);
            }
            > span {
                margin: 0 8px;
                display: inline-block;
            }
        }
    }
}

.icon {
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    overflow: hidden;
    &.applyIcon {
        color: #44c69d;
        background: #ecf9f5;
    }
    &.workIcon {
        color: #ffa22d;
        background: #fff5ea;
    }
    &.flowIcon {
        color: #5590f6;
        background: #eef3fe;
    }
}

div[data-layout='right'] {
    .todoCardWrapper {
        .abstract {
            flex-direction: column;
            li {
                width: 100%;
                > span:last-child {
                    max-width: initial;
                    padding-right: 0px;
                }
            }
        }
        .footer {
            overflow-x: hidden;
            .pushInfo {
                > span {
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                }
            }
        }
    }
}

.todoCardTooltip {
    max-width: 500px !important;
}

@media screen and (max-width: 1600px) {
    div[data-layout='right'] {
        .todoCardWrapper {
            .footer {
                .pushInfo {
                    > span {
                        max-width: 200px;
                    }
                }
            }
        }
    }
}

@media screen and (min-width: 1601px) {
    div[data-layout='right'] {
        .todoCardWrapper {
            .footer {
                .pushInfo {
                    > span {
                        max-width: 250px;
                    }
                }
            }
        }
    }
}
